import request from '@/utils/request'

// 查询会员等级列表
export function listMember_level(params) {
  return request({
    url: 'admin/api/memberLevel/list',
    method: 'get',
    params
  })
}

// 查询会员等级详细
export function getMember_level(id) {
  return request({
    url: 'admin/api/memberLevel/' + id,
    method: 'get'
  })
}

// 新增会员等级
export function addMember_level(data) {
  return request({
    url: 'admin/api/memberLevel/add',
    method: 'post',
    data
  })
}

// 修改会员等级
export function updateMember_level(data) {
  return request({
    url: 'admin/api/memberLevel/update',
    method: 'put',
    data
  })
}

// 删除会员等级
export function delMember_level(data) {
  return request({
    url: 'admin/api/memberLevel/delete',
    method: 'delete',
    data
  })
}

// 导出会员等级
export function exportMember_level(query) {
  return request({
    url: 'admin/api/memberLevel/export',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
